package com.example.llollama.commponent;

import java.util.function.Function;

public class RecruitServiceFunction implements Function<RecruitServiceFunction.Request, RecruitServiceFunction.Response> {

    @Override
    public Response apply(Request request) {
        String position = "未知";
        if (request.name.contains("刘磊")) {
            position = "算法工程师";
        }
        //System.out.println("函数被调用了：" + 1 / 0);
        return new Response(position);
    }

    public record Request(String name) {

    }

    public record Response(String position) {
    }
}
